#pragma once
#include "RedisSubscriber_global.h"
#include "Publisher.h"
class REDISSUBSCRIBER_EXPORT RedisSubscriber : public Publisher
{
    Q_OBJECT
public:
    RedisSubscriber();
    // virtual void shares(SharedData * share);
    virtual void Run();
    virtual void setLoader(QLibrary*);
protected:
    virtual void run();
signals:
    void pubData(const QString& ,const QString& ,const QVariant&);

};

extern "C" {//一定要添加上
REDISSUBSCRIBER_EXPORT Publisher* instance();
REDISSUBSCRIBER_EXPORT void destroy(Publisher*);
}
